package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.tudarmstadt.ukp.dkpro.core.tokit.BreakIteratorSegmenter;
import de.unidue.langtech.teaching.pp.example.Baseline;
import de.unidue.langtech.teaching.pp.example.Evaluator;
import de.unidue.langtech.teaching.pp.example.Reader;

/**
 * Hier wird definiert welche Datei aus welchem Pfad eingelesen werden soll.
 * Hier kommt ein BreakIteratorSegmenter zum Einsatz.
 * 
 * @author ANAS
 *
 */

public class ExtendedPipeline
{

    public static void main(String[] args)
        throws Exception
    {
        SimplePipeline.runPipeline(
                CollectionReaderFactory.createReader(
                        Reader.class,
                        Reader.PARAM_INPUT_FILE, "src/test/resources/test/taskb-tweets-dev.txt"
                ),
                AnalysisEngineFactory.createEngineDescription(BreakIteratorSegmenter.class),
                AnalysisEngineFactory.createEngineDescription(Baseline.class),
                AnalysisEngineFactory.createEngineDescription(Evaluator.class)
        );
    }
}